﻿#include "dialog.h"
#include "ui_dialog.h"
#include <QVBoxLayout>


Dialog::Dialog(QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::Dialog)
{
    ui->setupUi(this);
    progressBar = new CircularProgressBar(this);
    progressBar->setValue(75); // 设置进度值
    progressBar->setForegroundColor(QColor(0, 120, 215)); // Fluent UI 蓝色
    progressBar->setBackgroundColor(QColor("#23292e")); // 黑色背景
    progressBar->setBorderTransparent(true); // 边框透明
    progressBar->setCornerRadius(10); // 圆角半径
    progressBar->setFontSize(16); // 字体大小
    progressBar->setFontColor(QColor("#ff5722")); // 字体颜色
    progressBar->setRingWidth(10); // 圆环宽度

    progressBar->resize(200, 200);

    QVBoxLayout *lay = new QVBoxLayout(this);
    lay->addWidget(progressBar);
    this->setLayout(lay);
    progressBar->show();
}

Dialog::~Dialog()
{
    delete ui;
}

